class Post < ActiveRecord::Base

  def get_tags
    Tag.find(Tagging.where(tag_from_id: self.id, tag_type:'post').pluck(:tag_id).uniq)
  end
end
